package com.myacg.editor.common.events;
/**
 * 提供通用的窗体事件(单例)
 * @author Administrator
 *
 */
public class JFrameCommonEvents {
	private  static   JFrameCommonEvents jFrameCommonEvents;
	/**
	 * 单例模式
	 * @return
	 */
	public   static JFrameCommonEvents getInstance(){
		if(jFrameCommonEvents==null){
			jFrameCommonEvents=new JFrameCommonEvents();
		}
		return jFrameCommonEvents;
	}
	//窗体退出事件
    private  WindowCloseLinsiner  windowCloseLinsiner;
	private   JFrameCommonEvents() {
		windowCloseLinsiner = new WindowCloseLinsiner();
	}  
	/**
	 * 获取窗体退出事件 , 点击确定后会直接exit程序
	 * @return
	 */
	public WindowCloseLinsiner getWindowCloseLinsiner() {
		return windowCloseLinsiner;
	} 
}
